from django.shortcuts import render_to_response
from models import Post


def index(request):
   posts = Post.objects.all()
   categories = Categories.objects.all()
   websites = Favourite_website.objects.all()
   shutBlog = ShutBlog.objects.all()
   return render_to_response('index.html', {'posts':posts,'cat': categories,'webs':websites,'shut': shutBlog:},RequestContext(request))